﻿using System.Web.Http;
using Elmah.Contrib.WebApi;
using Todo.Api.CustomAttributes;
using TodoApi.Api.App_Start;

// ReSharper disable CheckNamespace
namespace TodoApi.Api
{
    public class WebApiApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);
            GlobalConfiguration.Configuration.Filters.Add(new ExceptionHandlingAttribute());
        }
    }
}
